package com.rk.kbk.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rk.kbk.common.DateJsonDeserializer;
import com.rk.kbk.common.DateJsonSerializer;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * @WebDailisubmit
 * @(web_dailisubmit)
 * @version : Ver 1.0
 */
@Entity
public class WebDailisubmit implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:主键
	 * @字段:id BIGINT(19)
	 */
	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@GenericGenerator(name="auto-identity",strategy="identity")
	@Column(updatable = false, columnDefinition="BIGINT(19) COMMENT '主键'")
	private Long id;

	/**
	 * @备注:申请日期
	 * @字段:req_datetime VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT '申请日期'")
	private String reqDatetime;

	/**
	 * @备注:
	 * @字段:req_city VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String reqCity;

	/**
	 * @备注:
	 * @字段:real_name VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String realName;

	/**
	 * @备注:
	 * @字段:phone VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String phone;

	/**
	 * @备注:
	 * @字段:email VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String email;

	/**
	 * @备注:
	 * @字段:company_name VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String companyName;

	/**
	 * @备注:
	 * @字段:company_address VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String companyAddress;

	/**
	 * @备注:
	 * @字段:elm_shop VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String elmShop;

	/**
	 * @备注:
	 * @字段:elm_order VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String elmOrder;

	/**
	 * @备注:
	 * @字段:elm_ride VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String elmRide;

	/**
	 * @备注:
	 * @字段:mt_shop VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String mtShop;

	/**
	 * @备注:
	 * @字段:mt_order VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String mtOrder;

	/**
	 * @备注:
	 * @字段:mt_ride VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String mtRide;

	/**
	 * @备注:
	 * @字段:bd_shop VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String bdShop;

	/**
	 * @备注:
	 * @字段:bd_order VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String bdOrder;

	/**
	 * @备注:
	 * @字段:bd_ride VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String bdRide;

	/**
	 * @备注:
	 * @字段:local_source VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String localSource;

	/**
	 * @备注:
	 * @字段:team_plan VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String teamPlan;

	/**
	 * @备注:
	 * @字段:then_plan VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String thenPlan;

	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@Column(updatable = false, columnDefinition="DATETIME(19) COMMENT '创建时间'")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime = new java.util.Date();

	/**
	 * @备注:修改时间
	 * @字段:upt_datetime DATETIME(19)
	 */
	@Column(columnDefinition="DATETIME(19) COMMENT '修改时间'")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime = new java.util.Date();

	public WebDailisubmit(){
	}

	public WebDailisubmit(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setReqDatetime(String reqDatetime) {
		this.reqDatetime = reqDatetime;
	}

	public String getReqDatetime() {
		return this.reqDatetime;
	}


	public void setReqCity(String reqCity) {
		this.reqCity = reqCity;
	}

	public String getReqCity() {
		return this.reqCity;
	}


	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getRealName() {
		return this.realName;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPhone() {
		return this.phone;
	}


	public void setEmail(String email) {
		this.email = email;
	}

	public String getEmail() {
		return this.email;
	}


	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyName() {
		return this.companyName;
	}


	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	public String getCompanyAddress() {
		return this.companyAddress;
	}


	public void setElmShop(String elmShop) {
		this.elmShop = elmShop;
	}

	public String getElmShop() {
		return this.elmShop;
	}


	public void setElmOrder(String elmOrder) {
		this.elmOrder = elmOrder;
	}

	public String getElmOrder() {
		return this.elmOrder;
	}


	public void setElmRide(String elmRide) {
		this.elmRide = elmRide;
	}

	public String getElmRide() {
		return this.elmRide;
	}


	public void setMtShop(String mtShop) {
		this.mtShop = mtShop;
	}

	public String getMtShop() {
		return this.mtShop;
	}


	public void setMtOrder(String mtOrder) {
		this.mtOrder = mtOrder;
	}

	public String getMtOrder() {
		return this.mtOrder;
	}


	public void setMtRide(String mtRide) {
		this.mtRide = mtRide;
	}

	public String getMtRide() {
		return this.mtRide;
	}


	public void setBdShop(String bdShop) {
		this.bdShop = bdShop;
	}

	public String getBdShop() {
		return this.bdShop;
	}


	public void setBdOrder(String bdOrder) {
		this.bdOrder = bdOrder;
	}

	public String getBdOrder() {
		return this.bdOrder;
	}


	public void setBdRide(String bdRide) {
		this.bdRide = bdRide;
	}

	public String getBdRide() {
		return this.bdRide;
	}


	public void setLocalSource(String localSource) {
		this.localSource = localSource;
	}

	public String getLocalSource() {
		return this.localSource;
	}


	public void setTeamPlan(String teamPlan) {
		this.teamPlan = teamPlan;
	}

	public String getTeamPlan() {
		return this.teamPlan;
	}


	public void setThenPlan(String thenPlan) {
		this.thenPlan = thenPlan;
	}

	public String getThenPlan() {
		return this.thenPlan;
	}

	public Date getGmtDatetime() {
		return gmtDatetime;
	}

	public void setGmtDatetime(Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public Date getUptDatetime() {
		return uptDatetime;
	}

	public void setUptDatetime(Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}
}
